﻿using Hotel.Model;
using Microsoft.EntityFrameworkCore;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Hotel.DAL
{
    public class HotelContext : DbContext
    {
        public HotelContext(DbContextOptions options) : base(options)
        {

        }
        //管理员模块----------------------------------------------------
        public DbSet<Admin> admins { get; set; }
        /// <summary>
        /// 会员模块-----------------------------------------------------
        /// </summary>
        public DbSet<Member> members { get; set; }
        public DbSet<MemberLevel> memberLevels { get; set; }
        public DbSet<MemberRight> memberRights { get; set; }

        /// <summary>
        /// 门店模块------------------------------------------------------
        /// </summary>
        public DbSet<Shop> shops { get; set; }

    }
}
